import request from '@/utils/request'

// 查询年龄列表
export function listIfmAge(query) {
  return request({
    url: '/system/IfmAge/list',
    method: 'get',
    params: query
  })
}

// 查询年龄详细
export function getIfmAge(ageId) {
  return request({
    url: '/system/IfmAge/' + ageId,
    method: 'get'
  })
}

// 新增年龄
export function addIfmAge(data) {
  return request({
    url: '/system/IfmAge',
    method: 'post',
    data: data
  })
}

// 修改年龄
export function updateIfmAge(data) {
  return request({
    url: '/system/IfmAge',
    method: 'put',
    data: data
  })
}

// 删除年龄
export function delIfmAge(ageId) {
  return request({
    url: '/system/IfmAge/' + ageId,
    method: 'delete'
  })
}
